home *** CD-ROM | disk | FTP | other *** search
-
- ================================================================
- $VER: base64.doc 1.1 (12.4.95) Copyright © 1995 Ralph Seichter
- ================================================================
-
-
- PURPOSE:
-
- This program was designed to encode/decode data using the base64 encoding
- scheme, which is widely used in MIME messages. Text and especially binary
- data is converted into a 7-bit-clean format, to ensure correct transport in
- virtually every major computer network. 'base64' will create a MIME message
- header if you wish. Requires 'dos.library' V36 (OS 2.x) or better. Returns
- RETURN_WARN on error and RETURN_OK otherwise, so it can be easily used in
- shell scripts.
-
-
- COMMAND TEMPLATE:
-
- FROM Input stream (defaults to standard input). If specified,
- the file name will be added to "Content-Type:" header, if
- the MIME keyword is also found.
-
- TO Output stream (defaults to standard output).
-
- D=DECODE/S Decode data (message headers will be ignored).
-
- E=ENCODE/S Encode data. You *must* specify either decode or encode!
-
- CRLF/S Create CR/LF pairs instead of single LF codes at the end
- of each output line (some mailer daemons require this).
-
- MIME/S Create a MIME message header.
-
- CTYPE/K Defaults to "Content-Type: application/octet-stream".
-
- DESCR/K Entry for "Content-Description:" (no default).
-
-
- USAGE EXAMPLES:
-
- 1> base64 encode foo bar
- Encode file 'foo' and write output to 'bar'.
-
- 1> base64 decode from bar to copy_of_foo
- Decode file 'bar' and write output to 'copy_of_foo'.
-
- 1> base64 encode c:type mime crlf
- Encode file 'c:type' using the standard output stream.
- Create a MIME message header and use CR/LF pairs.
-
- 1> base64 encode odie.gif ctype="image/gif" descr="A picture of Odie"
- Encode the GIF picture and define headers "Content-Type: image/gif"
- and "Content-Description: A picture of Odie".
-
-
- HISTORY:
-
- V1.0 (04.04.95) Initial release.
-
- V1.1 (12.04.95) Using the MIME keyword no longer confuses the internal
- I/O error handling (this happened sometimes in V1.0).
-
-
- COPYRIGHT NOTICE AND DISCLAIMER:
-
- 'base64' and all other distribution archive contents are Copyright © 1995
- Ralph Seichter, all rights reserved. You may freely use all files and give
- copies of it to other users, as long as you don't try to make any profit.
- You *MUST NOT* add files to or delete files from the distribution archive!
-
- THIS MATERIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
- EXPRESS OR IMPLIED, STATUTORY OR OTHERWISE, INCLUDING WITHOUT LIMITATION
- ANY IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTABILITY AND FITNESS FOR
- A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE USE, RESULTS, AND
- PERFORMANCE OF THIS MATERIAL IS ASSUMED BY YOU AND IF THE PRODUCT SHOULD
- PROVE TO BE DEFECTIVE, YOU ASSUME THE ENTIRE COST OF ALL NECESSARY
- SERVICING, REPAIR, OR OTHER REMEDIATION.
-
-